package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "news_tj_menber")
//@NamedQueries({@NamedQuery(name = "NewsTjMenber.findAll", query = "SELECT n FROM NewsTjMenber n")})
public class NewsTjMenber implements Serializable {
    private static final long serialVersionUID = 1L;
    @EmbeddedId
    protected NewsTjMenberPK tjMenberPK; 
    @Column(name = "cnumber")              
    private Integer cnumber;				//用户数，点击数
    private String base_extend_1;           //扩展字段1
    private Integer base_extend_2;           //扩展字段1
    public NewsTjMenber(){
    }
    public NewsTjMenber(NewsTjMenberPK tjMenberPK){
    	this.tjMenberPK=tjMenberPK;
    }
	public NewsTjMenberPK getTjMenberPK() {
		return tjMenberPK;
	}
	public void setTjMenberPK(NewsTjMenberPK tjMenberPK) {
		this.tjMenberPK = tjMenberPK;
	}
	public Integer getCnumber() {
		return cnumber;
	}
	public void setCnumber(Integer cnumber) {
		this.cnumber = cnumber;
	}
	public String getBase_extend_1() {
		return base_extend_1;
	}
	public void setBase_extend_1(String base_extend_1) {
		this.base_extend_1 = base_extend_1;
	}
	public Integer getBase_extend_2() {
		return base_extend_2;
	}
	public void setBase_extend_2(Integer base_extend_2) {
		this.base_extend_2 = base_extend_2;
	}
	@Override
    public int hashCode() {
        int hash = 0;
        hash += (tjMenberPK != null ? tjMenberPK.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof NewsTjMenber)) {
            return false;
        }
        NewsTjMenber other = (NewsTjMenber) object;
        if ((this.tjMenberPK == null && other.tjMenberPK != null) || (this.tjMenberPK != null && !this.tjMenberPK.equals(other.tjMenberPK))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.NewsTjMenber[tjMenberPK=" + tjMenberPK + "]";
    }
    
}
